/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author murrieta
 */
class Capa1 implements Encapsulamiento{

    public String capa1PDU;
    public void armarPDU(String pci, String sdu) {
        String pci1 = "COM1".concat(pci);
        String sdu1 = sdu;
        capa1PDU = pci1.concat(sdu1);
        //System.out.println(capa1PDU);

    }

    public void desarmarPDU() {
        String origen = capa1PDU.substring(0, 4);
        String destino = capa1PDU.substring(4, 8);
        System.out.println("Interfaz origen: "+ origen + " Interfaz Destino: "+destino);
    }

    public String enviarPDU(String pdu) {
        return capa1PDU;
    }

    


    

    
}
